package com.wxy.school.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author 王祥宇
 * @projectName school
 * @packageName com.wxy.school.entity
 * @data 2023/3/8 15:36
 * @description: 订单表实体类
 * @version: 1.0
 */

@Data
public class Orders implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;

    private String orderId;

    private Integer orderStatus;

    private Long userId;

    private BigDecimal orderPrice;

    private Long addressId;

    private String orderText;

    private String address;

    private String aliPayId;

    private BigDecimal discounts;

    private Long shopId;

    private String subject;

    private Integer isRate;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime payTime;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime refundTime;
}
